/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-14
 * Time:16:24
 */
public class Student {
    private String name;
    private int age;
    private int ds;
    private int English;

    public Student(String name, int age, int ds, int english) {
        this.name = name;
        this.age = age;
        this.ds = ds;
        this.English = english;
    }

    public Student(String name) {
        this.name = name;
    }

    public Student() {
    }

    public int total(){
        return this.ds+this.English;
    }

    public void printStudent(){
        System.out.println("姓名："+this.name);
        System.out.println("年龄:" + this.age);
        System.out.println("数据结构成绩：" + this.ds);
        System.out.println("英语成绩：" + this.English);
    }
}
